const storage = {




    localSet: function (name, data) {
        localStorage.removeItem(name)
        localStorage.setItem(name, JSON.stringify(data))
    },
    localGet: function (name) {
        return JSON.parse(localStorage.getItem(name))
    },
    localRemove: function (name) {
        localStorage.removeItem(name)
    },
 

    set(key, value) {
        window.sessionStorage.setItem(key, value)
    },
    
    get(key) {
        return window.sessionStorage.getItem(key)
    },

    remove(key) {
        window.sessionStorage.removeItem(key)
    }
    
}

export default storage